<?php 
/* SVN FILE: $Id$ */
/* Article Test cases generated on: 2009-12-14 01:09:03 : 1260749343*/
App::import('Model', 'Article');

class ArticleTestCase extends CakeTestCase {
	var $Article = null;
	var $fixtures = array('app.article');

	function startTest() {
		$this->Article =& ClassRegistry::init('Article');
	}

	function testArticleInstance() {
		$this->assertTrue(is_a($this->Article, 'Article'));
	}

	function testArticleFind() {
		$this->Article->recursive = -1;
		$results = $this->Article->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Article' => array(
			'id'  => 1,
			'title'  => 1,
			'text'  => 1,
			'author'  => 1,
			'date'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>